<template>
  <div>
    <h3>打印</h3>
    <button @click="$refs.myPdfComponent.print()">print</button>
    <pdf
      ref="myPdfComponent"
      src="http://qinniu.douziqianduan.icu/oa_work03.pdf"
    ></pdf>
  </div>
</template>

<script>
import pdf from "vue-pdf";

export default {
  name: "Pdf03",
  components: {
    pdf,
  },
};
</script>

<style>
</style>